<%@page contentType="text/html; charset=utf-8" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html:html lang="ja">
<head>
   <title>住所録</title>
</head>
  <body>
 <h1>住所録　</h1> 
  <h2>検索結果</h2>
  <h3>BeautyChen</h3>
  
   <TABLE width="400"　border="1">
     <TR bgColor=#bb5a5a width="400">
      <TH><FONT color=#ffffff>番号</FONT></TH>
      <TH><FONT color=#ffffff>氏名</FONT></TH>
      <TH><FONT color=#ffffff>住所</FONT></TH>
      <TH colspan="2"><FONT color=#ffffff>操作</FONT></TH>
     </TR>
     <logic:iterate id="address" name="addresses" type="model.Address" length="10" indexId="count" >
      <!-- カタログらしく、色を変える -->
      <TR bgColor=#fddddd width="400" >
       <TD align="center" width="40" ><bean:write name="address" property="id" /></TD>
       <TD width="290" ><bean:write name="address" property="name" /></TD>
       <TD align="right" width="70" ><bean:write name="address" property="address1" /></TD>
       <TD align="right" width="70" ><html:link action="/AddressDetail" paramId="id" paramName="address" paramProperty="id" >詳細</html:link></TD>
       <TD align="right" width="70" ><html:link action="/AddressDelete" paramId="id" paramName="address" paramProperty="id" >削除</html:link></TD>

      </TR>
     </logic:iterate>
   <TR width="400">

  
   </TD>
   </TR>
   </TABLE>
   <p> 
     <a href="view/new.jsp" >新規登録</a>
   <a href="view/search.jsp">検索</a>
    </p> 
</body>
</html:html>